<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "" "">
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ajax="http://www.apusic.com/jsf/ajax"
	renderKitId="AJAX">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<w:stylesheet src="/css/kmp4.css" type="text/css"></w:stylesheet>
		<w:script src="/javascript/k4.js" type="text/javascript" language="UTF-8"></w:script>
		<script>
		 	//<![CDATA[
		 	
		 			function toYesFunction(){
		 			//置为有效的方法
		 				if(confirm('确定将此配置项置为有效吗？')){ 
		 				    yesEnabledExpertJsr.fireEvent("click");
		 				}
		 			}
		 			function toNoFunction(){
		 			  //置为无效的方法
		 				if(confirm('确定将此配置项置为无效吗？')){ 
		 				    noEnabledExpertJsr.fireEvent("click");
		 				}
		 			}
		 	
		     //]]>
		 </script>


	</w:head>
	<w:page title="查看配置项">
		<layout:panel border="false" autoHeight="true" autoWidth="true" styleClass="k4-form"
			id="mainShowCK">
			<w:form>
				<layout:panel border="false" autoHeight="true" autoWidth="true" styleClass="k4-form-toolbar">
					<w:toolBar>
						<w:button label="编辑"
							image="#{facesContext.externalContext.requestContextPath}/images/edit.gif" id="editCommonKey" />
						<w:separator />
						<w:button label="删除"
							image="#{facesContext.externalContext.requestContextPath}/images/delete.gif" id="remove"
							onclick="return showConfirm('你确定要删除吗？');" />
						<w:button label="置为无效" id="noEnabledExpertJ"
							style="#{system_showCommonKeyBean.styleNo}"
							image="#{request.contextPath}/images/edit.gif" onclick="toNoFunction()" />
						<w:button label="置为无效" id="noEnabledExpert" jsvar="noEnabledExpertJsr" style="display:none" />
						<w:button label="置为有效" id="yesEnabledExpertJ"
							style="#{system_showCommonKeyBean.styleYes}"
							image="#{request.contextPath}/images/edit.gif" onclick="toYesFunction()" />
						<w:button label="置为有效" id="yesEnabledExpert" jsvar="yesEnabledExpertJsr" style="display:none" />
						<w:button label="复制创建" id="copeyCreate"
							image="#{facesContext.externalContext.requestContextPath}/images/copy.gif"
							jsvar="copeyCreateJsr" />
						<w:separator />
					</w:toolBar>
				</layout:panel>
			</w:form>
			<layout:panelGrid columns="2" cellpadding="0" cellspacing="0" border="1"
				styleClass="k4-form-grid">
				<layout:cell styleClass="k4-form-fieldtitle">
					<h:outputLabel value="配置项值" />
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldvalue">
					<h:outputText id="keyValue"></h:outputText>
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldtitle">
					<h:outputLabel value="配置项简称" for="shortCommonKeyValue" />
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldvalue">
					<h:outputText styleClass="k4-form-textfield" id="shortCommonKeyValue"></h:outputText>
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldtitle">
					<h:outputLabel value="配置项类型" />
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldvalue">
					<h:outputText id="keyType" converter="commonKeyTypeFormatter"></h:outputText>
				</layout:cell>
				<!--<layout:cell styleClass="k4-form-fieldtitle">
					<h:outputLabel value="专家类别" for="freeItem1" />
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldvalue">
					<h:outputText id="freeItem1"></h:outputText>
				</layout:cell>
				--><layout:cell styleClass="k4-form-fieldtitle" id="parentIdTitle">
					<h:outputLabel value="所属级别" for="keyType" />
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldvalue">
					<h:outputText id="parentId" converter="commonKeyFormatter"></h:outputText>
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldtitle">
					<h:outputLabel value="是否有效" />
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldvalue">
					<h:outputText id="enabled" converter="yesNoFormatter"></h:outputText>
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldtitle">
					<h:outputLabel value="是否可选" />
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldvalue">
					<h:outputText id="checkEnable" converter="yesNoFormatter"></h:outputText>
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldtitle">
					<h:outputLabel value="序号" />
				</layout:cell>
				<layout:cell styleClass="k4-form-fieldvalue">
					<h:outputText id="indexNumber"></h:outputText>
				</layout:cell>
			</layout:panelGrid>
		</layout:panel>
	</w:page>
</f:view>